package com.yidu.ruifeng_logistics.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @author: 肖楚科
 * @date:2021/2/4
 * @time:9:20
 * @blog:com.yidu.util
 * @description: 取默认的管理员账号和密码
 */
public class Admin {
    public static String userAdmin="" ;
    public static String userPassword="" ;

    static{
        Properties properties = new Properties();
        InputStream is = Admin.class.getClassLoader().getResourceAsStream("admin.properties");
        try {
            properties.load(is);
            userAdmin = properties.getProperty("userAdmin");
            userPassword =properties.getProperty("userPassword");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
